package day20171220;

import com.sun.org.apache.xerces.internal.impl.xpath.regex.Match;

import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by Administrator on 2017-12-20.
 */
public class Test {


    public static void main(String[] args) {


        Map<String, Integer> map = new HashMap<String, Integer>();
        map.put("1606101025", 0);
        map.put("1606101026", 0);
        map.put("1606101027", 0);


        File file = new File("D:\\16信本2班Java作业一");

        File[] files = file.listFiles();

        for (File f : files){

            String fileName = f.getName();

            //面向对象程序设计Java2016级信本2班1606101025黄宇作业1.docx


            String stuNO = "";

            Matcher match = Pattern.compile("信本2班(\\d+)").matcher(fileName);

            while(match.find()){


                stuNO = match.group(1);
            }



        }



    }
}
